package com.lucy.viewer.constant;

/**
 * @author kindear
 * 文档预览服务提供者
 */
public enum ViewerServiceEnum {
    // 浏览器
    BROWSER(0,"BROWSER"),
    // 在线office组件
    ONLY_OFFICE(1,"ONLY_OFFICE"),
    // 在线ViewerJS
    VIEWER_JS(2,"VIEWER_JS"),
    // Vditor Markdown
    VDITOR(3,"VDITOR");

    private int code;
    private String mode;

    ViewerServiceEnum(int code, String mode) {
        this.code = code;
        this.mode = mode;
    }

    public int getCode() {
        return code;
    }

    public String getMode() {
        return mode;
    }
}
